<?php
/**
 * User: 五哥派
 * Date: 2024/7/1
 * Tel(同WX): 17335592719
 */
use think\Route;

//用户权限
Route::post('api/:version/Auth/verifyToken','api/:version.Auth/verifyToken');
Route::post('api/:version/Auth/getToken','api/:version.Auth/getToken');
//Route::post('api/:version/Auth/loginMpWx','api/:version.Auth/loginMpWxDefault');
Route::get('api/:version/agreement/detail','api/:version.agreement/getDetail');//获取协议详情

Route::get('api/:version/banner/list','api/:version.Banner/getList');//获取banner列表
Route::get('api/:version/notice/list','api/:version.Notice/getList');//获取公告列表
Route::get('api/:version/nav/list','api/:version.Nav/getList');//获取导航区列表
Route::get('api/:version/goods/list','api/:version.Goods/getList');//获取商品列表
Route::get('api/:version/goods/listbycategory','api/:version.Goods/getListByCategoryId');//根据商品分类id获取商品列表
Route::get('api/:version/goods/detail','api/:version.Goods/getDetail');//获取商品详情
Route::get('api/:version/category/list','api/:version.Category/getList');//获取商品分类列表


Route::get('api/:version/user/detail','api/:version.User/getDetail');//获取用户信息
Route::post('api/:version/user/updateUserInfo','api/:version.User/updateUserInfo');//更改用户信息
Route::post('api/:version/user/updateAvatar','api/:version.User/updateAvatar');//更改用户头像

Route::get('api/:version/cart/list','api/:version.Cart/getList');//获取购物车列表
Route::get('api/:version/cart/count','api/:version.Cart/getCount');//获取购物车列表
Route::post('api/:version/cart/add','api/:version.Cart/add');//新增购物车
Route::post('api/:version/cart/update','api/:version.Cart/update');//更新购物车
Route::post('api/:version/cart/delete','api/:version.Cart/delete');//删除购物车某一商品
Route::post('api/:version/cart/clear','api/:version.Cart/clear');//清空购物车


Route::get('api/:version/address/list','api/:version.Address/getList');//获取地址列表
Route::get('api/:version/address/detail','api/:version.Address/getDetail');//获取地址详情
Route::get('api/:version/address/default','api/:version.Address/getDefault');//获取默认地址详情
Route::post('api/:version/address/add','api/:version.Address/add');//新增地址
Route::post('api/:version/address/edit','api/:version.Address/edit');//更新地址
Route::post('api/:version/address/delete','api/:version.Address/delete');//删除地址
Route::post('api/:version/address/setdefault','api/:version.Address/setDefault');//设置默认地址


Route::post('api/:version/order/add', 'api/:version.Order/add');//生成订单
Route::get('api/:version/order/list', 'api/:version.Order/getList');//获取订单列表
Route::get('api/:version/order/detail', 'api/:version.Order/getDetail');//根据订单id 获取详情
Route::post('api/:version/order/receipt', 'api/:version.Order/receipt');//确认收货
Route::post('api/:version/order/cancel', 'api/:version.Order/toCancel');//取消订单
Route::post('api/:version/order/comment', 'api/:version.Order/toComment');//订单评论
Route::get('api/:version/order/unpaid_detail','api/:version.Order/getUnpaidDetail');//获取支付订单详情
Route::get('api/:version/order/todoCounts','api/:version.Order/getTodoCounts');

Route::post('api/:version/refund/add', 'api/:version.Refund/add');//生成退货退款订单


Route::post('api/:version/pay/pre_order', 'api/:version.Pay/getPreOrder');//微信支付 正常下单
Route::post('api/:version/pay/notify', 'api/:version.Pay/receiveNotify');//微信支付成功回调 正常下单回调


Route::get('api/:version/dealer/center','api/:version.dealer/getCenter');//获取分销中心信息
Route::get('api/:version/dealer.apply/status','api/:version.dealer.apply/getStatus');//获取分销商申请状态
Route::post('api/:version/dealer.apply/add','api/:version.dealer.apply/add');//获取分销商申请状态





















